﻿namespace Dyao.Book.Contract
{
    /// <summary>
    /// 数值比较项
    /// </summary>
    public class NumericComparisonItemModel
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 比较运算符
        /// </summary>
        public NumericComparisonOperator Operator { get; set; }

        /// <summary>
        /// 值
        /// </summary>
        public decimal? Value { get; set; }
    }

    /// <summary>
    /// 数值比较项 - 前后值比较
    /// </summary>
    public class NumericCompoundComparisonItemModel : NumericComparisonItemModel
    {
        /// <summary>
        /// 前一个比较运算符
        /// </summary>
        public NumericComparisonOperator PrependOperator { get; set; }

        /// <summary>
        /// 前一个值
        /// </summary>
        public decimal? PrependValue { get; set; }
    }
}
